package com.ruin.tech.ahri.result;

/**
 * @program ahri
 * @description: 返回给web的结果
 * @author: ruin
 * @create: 2019/06/20 08:17
 */
public class Result {
    /**
    * @description: 状态码
    * @param: 
    * @return: 
    * @author: ruin
    * @date: 2019/6/20
    */
    private int code;

    /**
    * @description: 响应消息
    * @param: 
    * @return: 
    * @author: ruin
    * @date: 2019/6/20
    */
    private String message;

    /**
    * @description: 响应结果
    * @param: 
    * @return: 
    * @author: ruin
    * @date: 2019/6/20
    */
    private Object data;

    public Result(int code, String message, Object data) {
        this.code = code;
        this.message = message;
        this.data = data;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }
}
